<template>
  <el-table :data="date" style="width: 100%">
    <el-table-column prop="userId" label="用户id" width="180" />
    <el-table-column prop="userName" label="用户" width="180" />
    <!-- <el-table-column prop="address" label="Address" /> -->
  </el-table>
</template>
<script>
import axios from 'axios'
export default{
  data(){
    return{
      date:[]
    }
  },
  mounted(){
    axios({
          url:"http://localhost:8080/ssm_project_1_war_exploded/json",
          mounted:"get",
          responseType:'json'
    })
    .then(response=>{
      console.log(response)
      this.date=response.data
    })
  }
}
</script>

